/*
 * Gavin Greene
 * 5/25/2011
 * This is a simple Enum for class violations. 
 */
package Constraint;

/**
 *
 * @author Gaivn Greene
 * @version 5/25/2011
 * 
 * This class contains the different types of Violations 
 * used when a schedule doesn't meet a constraint.
 */
public enum Violations {

	CLASSVIOLATION("Class Violation"),
	BUSINESSRULEVIOLATION("Business Rule Violation"),
	TIMEVIOLATION("Time Violation"),
	TEACHERNOTASSIGNED("Teacher Not Assigned");
	Violations(String theName){
		myName = theName;
	}
	
	@Override 
	public String toString() { return myName; }
	
	public String getName() { return myName; }
	
	private String myName;
	
	
}
